home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / etc / makefile.sh next >
Makefile  |  1994-08-09  |  1KB  |  48 lines

  1. case $CONFIG in
  2. '')
  3.     if test ! -f config.sh; then
  4.     ln ../config.sh . || \
  5.     ln ../../config.sh . || \
  6.     ln ../../../config.sh . || \
  7.     (echo "Can't find config.sh."; exit 1)
  8.     fi
  9.     . config.sh
  10.     ;;
  11. esac
  12. : This forces SH files to create target in same directory as SH file.
  13. : This is so that make depend always knows where to find SH derivatives.
  14. case "$0" in
  15. */*) cd `expr X$0 : 'X\(.*\)/'` ;;
  16. esac
  17. echo "Extracting etc/Makefile (with variable substitutions)"
  18. : This section of the file will have variable substitutions done on it.
  19. : Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!.
  20. : Protect any dollar signs and backticks that you do not want interpreted
  21. : by putting a backslash in front.  You may delete these comments.
  22. $spitshell >Makefile <<!GROK!THIS!
  23. !GROK!THIS!
  24.  
  25. : In the following dollars and backticks do not need the extra backslash.
  26. $spitshell >>Makefile <<'!NO!SUBS!'
  27. STUFF = rsconvert
  28. SHELL = /bin/sh
  29.  
  30. default:
  31.     for i in $(STUFF); do \
  32.         (cd $$i && $(MAKE)); \
  33.     done
  34.  
  35. depend clean:
  36.     for i in $(STUFF); do \
  37.         (cd $$i && $(MAKE) $@); \
  38.     done
  39.  
  40. realclean:
  41.     for i in $(STUFF); do \
  42.         (cd $$i && $(MAKE) $@); \
  43.     done
  44.     rm -f Makefile Makefile.bak *~
  45. !NO!SUBS!
  46. chmod 755 Makefile
  47. $eunicefix Makefile
  48.